package com.test.web.dao;

import com.test.web.entity.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @author heyanjing
 * date:2020-07-21 2020/7/21:10:22
 */
public interface MenuDao {

    int deleteByPrimaryKey(String menuId);

    int insert(Menu record);

    int insertOrUpdate(Menu record);

    int insertOrUpdateSelective(Menu record);

    int insertSelective(Menu record);

    Menu selectByPrimaryKey(String menuId);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    int updateBatch(List<Menu> list);

    int batchInsert(@Param("list") List<Menu> list);

    List<Menu> find();

    List<Menu> findByStatus(@Param("status") String status);

    int updateStatusByMenuIdIn(@Param("updatedStatus") String updatedStatus, @Param("menuIdCollection") Collection<String> menuIdCollection);

}